<?php
/**
 * Created by PhpStorm.
 * User: 墨鱼行
 * Signature: 好好学习，天天向上
 * Date: 19-3-7
 * Time: 上午10:49
 */

namespace app\api\validate;


class PayValidate extends BaseValidate
{
    protected $rule = [
        'orderId' => 'require|isPositiveInteger',
    ];

    protected $message = [
        'orderId' => 'orderId必须为正整数'
    ];

    public function __construct ($method)
    {
        switch ($method)
        {
            case 'getPreOrder':
                $this->rule = [
                    'orderId' => 'require|isPositiveInteger'
                ];
                break;
        }
        parent::__construct($this->rule);
    }
}